
<script setup>
import QrcodeVue from 'qrcode.vue'
import { ref } from 'vue';

var value=ref("")
value.value=getUrl()
var size=ref(300)
function getUrl(){
      var rootEl=document.getElementById("app")
      var url="http://"+rootEl.getAttribute("hostIP")+":"+window.location.port+"/client?"+rootEl.getAttribute("key")
      console.log(url)
      return url
}

</script>

<template>
  <QrcodeVue :value="value" :size="size" level="H" />
</template>

<style scoped>
a {
  color: #42b983;
}
</style>
